package com.weilus.dto;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import org.springframework.validation.ObjectError;

@JacksonXmlRootElement(localName="error")
public class ErrorResp extends RespEntity{
	private static final long serialVersionUID = -2350030505195569047L;
	
	public ErrorResp(String code,String msg){
		super(code,msg,null);
	}

	public ErrorResp(ObjectError error){
		super(error.getObjectName(),error.getDefaultMessage(),null);
	}

}
